#include "../stdafx.h"
#include "Wall.h"

CWall::CWall()
{
	Listener::RegisterForEvent("TURN_OFF");
}


CWall::~CWall()
{
	Listener::UnregisterFromEvent("TURN_OFF");
}

void CWall::Update(float elapsedTime) /*override*/
{

}

void CWall::HandleEvent(const SGD::Event* pEvent) /*override*/
{
	if (pEvent->GetEventID() == "TURN_OFF")
		ToggleActive(false);
}